package arabaRacesWS;

public class RaceDTO {  
    private String name = null;
    private float distance = (float)0;
    private String date = null;
    private int places = (int)0;

    public RaceDTO ()
    {
    }

    public RaceDTO (String _name, float _distance, String _date, int _places)
    {
      name = _name;
      distance = _distance;
      date = _date;
      places = _places;
    }

    public void setName(String name)
    {
      this.name=name;
    }

    public String getName()
    {
      return name;
    }

    public void setDistance(float distance)
    {
      this.distance=distance;
    }

    public float getDistance()
    {
      return distance;
    }

    public void setDate(String date)
    {
      this.date=date;
    }

    public String getDate()
    {
      return date;
    }

    public void setPlaces(int places)
    {
      this.places=places;
    }

    public int getPlaces()
    {
      return places;
    }
}